<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>选择入住城市</title>
    <link rel="stylesheet" href="../../../css/aui.css" />
    <link rel="stylesheet" href="../../../css/iconfont/iconfont.css">
    <link rel="stylesheet" href="../../../css/hotel/iconfont.css">
    <link rel="stylesheet" href="../../../css/index/hotel/main.css">
    <link rel="stylesheet" href="../../../css/index/hotel/common.css">
    <style>
        .iconfont,.fafont{
            color:#777;
            margin-right: 10px;
        }
    </style>
<body style="cursor: pointer">
    <div class="aui-content" style="background: #fff;padding:10px;">
        <div class="qt-page-wrapper active" id="qt_page_facilities" style="z-index: 168; height: 667px;">

            <div class="qt-page-scroll-wrapper">
                <div class="qt-page-content">
                    <div class="qt-page-sub-header qt-hide"></div>
                    <div class="qt-page-body" style="padding-top: 50px;background: #f0f3f5;" >
                        <div class="facilities qt-bb-x1 qt-bg-white">
                            <div class="facilities_title">网络设施</div>
                            <div class="facilities_list network-facilities">
                                <!--<div>
                                    <span class="iconfont icon-wifi"></span>
                                    公共区域wifi
                                </div>
                                <div>
                                    <span class="iconfont icon-kuandaigaihao"></span>
                                    宽带上网
                                </div>-->
                            </div>
                            <div class="facilities_title">房间设施</div>
                            <div class="facilities_list room-facilities">
                                <!--<div>
                                    <span class="iconfont icon-reshui1"></span>
                                    全天热水
                                </div>
                                <div>
                                    <span class="iconfont icon-chuifengji1"></span>
                                    吹风机
                                </div>-->
                            </div>
                            <!--<div class="hidden-facilities">
                                <div class="facilities_title">通用设施</div>
                                <div class="facilities_list common-facilities">

                                </div>
                                &lt;!&ndash;<div class="facilities_list common-facilities">
                                    <div>
                                        <span class="iconfont icon-icon_lift"></span>
                                        电梯
                                    </div>
                                    <div>
                                        <span class="iconfont icon-shoufeitingchechang"></span>
                                        收费停车
                                    </div>
                                    <div>
                                        <span class="iconfont icon-dayin"></span>
                                        打印机
                                    </div>


                                    <div>
                                        <span class="iconfont icon-tingchechang"></span>
                                        停车场
                                    </div>
                                    <div>
                                        <span class="iconfont icon-xinyongqia1"></span>
                                        信用卡
                                    </div>
                                    <div>
                                        <span class="iconfont icon-wuneiwifi"></span>
                                        屋内wifi
                                    </div>
                                    <div>
                                        <span class="iconfont icon-sangnafang"></span>
                                        桑拿房
                                    </div>
                                    <div>
                                        <span class="iconfont icon-jianshen"></span>
                                        健身
                                    </div>
                                    <div>
                                        <span class="iconfont icon-zhuanzhihangliyuan"></span>
                                        专职行李员
                                    </div>
                                    <div>
                                        <span class="iconfont icon-zaocan"></span>
                                        早餐
                                    </div>
                                    <div>
                                        <span class="iconfont icon-xishicanting"></span>
                                        西式餐厅
                                    </div>
                                    <div>
                                        <span class="iconfont icon-youzhengfuwu"></span>
                                        邮政服务
                                    </div>
                                    <div>
                                        <span class="iconfont icon-kafeiting"></span>
                                        咖啡
                                    </div>
                                    <div>
                                        <span class="iconfont icon-waibiduihuan"></span>
                                        外币兑换
                                    </div>
                                    <div>
                                        <span class="iconfont icon-guojichangtu"></span>
                                        国际长途
                                    </div>
                                    <div>
                                        <span class="iconfont icon-jiuba"></span>
                                        酒吧
                                    </div>
                                    <div>
                                        <span class="iconfont icon-jiejifuwu"></span>
                                        接机服务
                                    </div>

                                </div>&ndash;&gt;
                            </div>-->
                            <div class="hidden-facilities">
                                <div class="facilities_title">服务项目</div>
                                <div class="facilities_list service-facilities">
                                    <!--<div>
                                        <span class="iconfont icon-huiyishi"></span>
                                        会议室
                                    </div>
                                    <div>
                                        <span class="iconfont icon-xiyifuwu"></span>
                                        洗衣服务
                                    </div>
                                    <div>
                                        <span class="iconfont icon-clock"></span>
                                        唤醒服务
                                    </div>
                                    <div>
                                        <span class="iconfont icon-hangli"></span>
                                        行李寄存
                                    </div>
                                    <div>
                                        <span class="iconfont icon-xiaolian"></span>
                                        全天前台
                                    </div>
                                    <div>
                                        <span class="iconfont icon-zihangche" style="font-size: 14px;
        margin-left: -5px;"></span>
                                        自行车租赁
                                    </div>-->
                                </div>
                            </div>
                        </div>
                        <div class="hotel-introduction qt-mt20 qt-bg-white">
                            <div class="introduction-bold">酒店政策</div>
                            <p class="qt-font14 qt-mt10 qt-black">入离时间</p>
                            <div class="introduction qt-lh qt-font14">
                                <span class="qt-font14">最早入住时间: <span class="arrival">7:00</span></span>
                                <span class="qt-font14 qt-ml20 ">最晚离店时间: <span class="departure">12:00</span></span>
                            </div>
                            <!--<div class="introduction-bold">最近装修时间:2017年</div>-->
                        </div>
                    </div>
                    <div class="qt-page-footer qt-hide"></div>
                </div>
            </div>
        </div>
    </div>
</body>
<script type="text/javascript" src="../../../script/aui/api.js"></script>
<script type="text/javascript" src="../../../script/extend/jquery-3.3.1.min.js"></script>
<script type="text/javascript" src="../../../script/extend/doT.min.js"></script>
<script type="text/javascript" src="../../../script/config.js"></script>
<script type="text/javascript" src="../../../script/common.js"></script>
<script>
    apiready = function(){
        let hotelData = JSON.parse($api.getStorage("hotel_data"));
        let param = {};
        param.url = Config.hotel.getHotelStaticInfo;
        param.data = {
          "hotel_id" : hotelData.hotel_id
        };

        var general = new Array();
        general[10] = ["叫醒服务", "icon-clock"];
        general[11] = ["洗衣服务", "icon-xiyifuwu"];
        general[12] = ["送餐服务", "icon-zhongcan"];
        general[13] = ["旅游服务", "icon-lvyoufuwu"];
        general[14] = ["租车服务", "icon-jiaochefuwu"];
        general[15] = ["专职行李员", 'icon-zhuanzhihangliyuan'];
        general[16] = ["擦鞋服务", "icon-caxiefuwu"];
        general[17] = ["行李寄存", 'icon-hangli'];
        general[18] = ["票务服务", "icon-menpiao"];
        general[19] = ["外币兑换服务", "icon-waibiduihuan"];
        general[20] = ["夜床服务", "icon-chuang"];
        general[21] = ["快速入住服务", "icon-shuimianxiaolv"];
        general[22] = ["班车服务", "icon-changtuqiche"];
        general[23] = ["代客泊车服务", "icon-suvqiche"];
        general[24] = ["24小时前台接待服务", 'icon-xiaolian'];
        general[25] = ["雨伞租借服务", "icon-yusanzujiefuwu"];
        general[26] = ["秘书服务", "icon-mishufuwu"];
        general[237] = ["医疗支援", "icon-yiliao"];
        general[238] = ["邮政服务", 'icon-youzhengfuwu'];
        general[239] = ["婴儿或儿童看护", "icon-yingerche"];
        general[240] = ["叫车服务", "icon-jiaochefuwu"];
        general[241] = ["房间消毒", "icon-fangjianxiaodu"];
        general[242] = ["免费接机服务", "icon-jiejifuwu"];
        general[243] = ["租借笔记本电脑", "icon-zujiebijiben"];
        general[244] = ["多种语言服务人员", "icon-duozhongyuyanfuwurenyuan"];
        general[245] = ["自行车租借服务", "icon-zihangche1"];
        general[246] = ["管家服务", "icon-guanjiafuwu"];
        general[247] = ["婚宴服务", "icon-dangao"];
        general[269] = ["收费接机服务", "icon-shoufeijieji"];
        general[767] = ["提供发票", "icon-tigongfapiao"];
        general[768] = ["接站服务", "icon-jiezhanfuwu"];
        general[769] = ["接机服务", 'icon-jiejifuwu'];
        general[770] = ["穿梭机场班车", "icon-chuansuojichangbanche"];
        general[771] = ["专职门童", "icon-zhuanzhimentong"];
        general[772] = ["礼宾服务", "icon-libinfuwu"];
        general[773] = ["部分时段前台服务", "icon-bufenshijianduanqiantaifuwu"];
        general[774] = ["24小时大堂经理", "icon-xiaoshidatangjingli"];
        general[775] = ["部分时段大堂经理", "icon-bufenshijianduandatangjingli"];
        general[777] = ["旅游票务服务", "icon-lvyoupiaowufuwu"];
        general[778] = ["外送洗衣服务", "icon-waisongxiyifuwu"];
        general[779] = ["鲜花店", "icon-huafangtubiaozhizuomobandinggao-"];
        general[780] = ["信用卡结算服务", "icon-xinyongqiajiesuanfuwu"];
        general[781] = ["欢迎礼品", "icon-huanyinglipin"];
        general[858] = ["语音留言", "icon-yuyinliuyan"];
        general[1037] = ["免费报纸", "icon-mianfeibaozhi"];
        general[1038] = ["雨伞租借服务(部分)", "icon-yusanzujiefuwu"];
        general[1039] = ["夜床服务(部分)", "icon-chuang"];
        general[1040] = ["穿梭机场班车免费", "icon-chuansuojichangbanche"];
        general[1041] = ["干洗", "icon-xiyifen"];
        general[1042] = ["熨衣服务", "icon-richangdianqiyundouji"];
        general[1043] = ["滑雪用具寄存", "icon-huaxueyongjujicun"];
        general[1044] = ["传真/复印", "icon-chuanzhenfuyin"];

        var RoomFacility = [];
        RoomFacility['电话'] = "icon-dianhua1";
        RoomFacility["空调"] = "icon-kongtiao";
        RoomFacility["国内长途电话"] = "icon-guoneichangtudianhua";
        RoomFacility["国际长途电话"] = "icon-guojichangtudianhua";
        RoomFacility["一次性洗漱用品"] = "icon-yicixingxishuyongpin";
        RoomFacility["电热水壶"] = "icon-reshuihu";
        RoomFacility["浴缸"] = "icon-yugang1";
        RoomFacility["拖鞋"] = "icon-tuoxie1";
        RoomFacility["电视"] = "icon-yejingdianshiji";
        RoomFacility["独立写字台"] = "icon-dulixiezitai";
        RoomFacility["吹风机"] = "icon-chuifengji1";
        RoomFacility["多种规格电源插座"] = "icon-duozhongguigedianyuanchazuo1";
        RoomFacility["110V电压插座"] = "icon-Vdianyachazuo";
        RoomFacility["浴室放大化妆镜"] = "icon-yushifangdahuazhuangjing1";
        RoomFacility["保险箱"] = "icon-baoxianxiang";
        RoomFacility["小冰箱"] = "icon-xiaobingxiang";
        RoomFacility["迷你酒吧"] = "icon-jiuba";
        RoomFacility["瓶装水"] = "icon-mianfeipingzhuangshui";
        RoomFacility["浴衣"] = "icon-yuyi";
        RoomFacility["电子磁卡门锁"] = "icon-dianziciqiamensuo";
        RoomFacility["座椅"] = "icon-zuoyi";
        RoomFacility["雨伞"] = "icon-yusanzujiefuwu";
        RoomFacility["针线包"] = "icon-zhenxianbao";
        RoomFacility["熨斗/熨衣板"] = "icon-yundouji";
        RoomFacility["多功能充电器"] = "icon-duogongnengchongdianqi";
        RoomFacility["办公文具"] = "icon-bangong";
        RoomFacility["可做无烟处理"] = "icon-icon_wuyanfang";
        RoomFacility["220V电压插座"] = "icon-mobilepower";
        RoomFacility["沙发"] = "icon-shafa";
        RoomFacility["咖啡机/茶具"] = "icon-kafeiji";
        RoomFacility["厨房"] = "icon-chufang";
        RoomFacility["电子称"] = "icon-chengzhong";
        RoomFacility["阳台"] = "icon-yangtai";
        RoomFacility["电子闹钟"] = "icon-clock";
        RoomFacility["洗衣机/烘干机"] = "icon-waisongxiyifuwu";
        RoomFacility["音响设备/收音机"] = "icon-icon--";
        RoomFacility["播放机"] = "icon-bofang";
        RoomFacility["房间报纸"] = "icon-mianfeibaozhi";
        RoomFacility["微波炉"] = "icon-weibolu";
        RoomFacility["电子遥控窗帘"] = "icon-chuanglian";
        RoomFacility["电热水器"] = "icon-reshuiqi1";
        RoomFacility["卫星频道"] = "icon-weixing";
        RoomFacility["传真机"] = "icon-chuanzhenfuyin";
        RoomFacility["餐具"] = "icon-canju";
        RoomFacility["提供直饮水"] = "icon-zhiyinshui";
        RoomFacility["卫生间"] = "icon-weishengjian";
        RoomFacility["电脑"] = "icon-diannao";
        RoomFacility["洗浴间"] = "icon-dulilinyujian";
        RoomFacility["淋浴"] = "icon-reshui";
        RoomFacility["麻将桌"] = "icon-majiang";
        RoomFacility["厨具"] = "icon-chuju";
        RoomFacility["洗衣机"] = "icon-ganxifuwu";
        RoomFacility["电饭煲"] = "icon-dianfanguo";
        RoomFacility["调味品"] = "icon-tiaoweipin";
        RoomFacility["家用冰箱"] = "icon-bingxiang";
        RoomFacility["电灶"] = "icon-zaoju";
        RoomFacility["24小时热水"] = "icon-reshui1";

        var wifi = [];
        wifi[1] = ['免费wifi', 'icon-wifi'];
        wifi[2] = ['收费wifi', 'icon-shoufeiWIFI'];
        wifi[3] = ['免费宽带', 'icon-kuandai'];
        wifi[4] = ['免费宽带', 'icon-shoufeikuandai'];

        $.post(param, function(ret) {
            console.log(JSON.stringify(ret.data.Detail));

            $('.arrival').html(ret.data.Detail.ArrivalTime + ':00');
            $('.departure').html(ret.data.Detail.DepartureTime + ':00');

            var arr = ret.data.Detail.FacilitiesV2.ServiceAmenities.split(',');//酒店服务设施
            for (let i = 0;i < arr.length;i++) {
                // console.log(general[arr[i]]);
                // console.log(arr[i]);
                if(general[arr[i]] !== undefined) {
                    let str = '<div>';
                    str += '<span class="fafont ' + general[arr[i]][1] + '"></span>';
                    str += general[arr[i]][0];
                    str += '</div>';
                    $('.service-facilities').append(str);
                }
            }
            var brr = ret.data.Detail.RoomAmenities.split('、');//酒店房间设施;
            // console.log(brr);
            for (let i = 0;i < brr.length;i++) {
                if(RoomFacility[brr[i]] !== undefined) {
                    let str = '<div>';
                    str += '<span class="fafont '+ RoomFacility[brr[i]] +'"></span>';
                    str += brr[i];
                    str += '</div>';
                    $('.room-facilities').append(str);
                }
            }

            if (ret.data.Detail.Facilities) {
                var crr = ret.data.Detail.Facilities.split(',');
                for (let i = 0;i < crr.length; i++) {
                    if(wifi[crr[i]] !== undefined) {
                        let str = '<div>';
                        str += '<span class="fafont '+ wifi[crr[i]][1] +'"></span>';
                        str += wifi[crr[i]][0];
                        str += '</div>';
                        $('.network-facilities').append(str);
                    }
                }
            } else {
                $('.network-facilities').append('暂无');
            }

        });
    }
</script>
</html>